home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3p / taskctl.z / taskctl
Encoding:
Text File  |  2002-10-03  |  2.2 KB  |  67 lines

  1.  
  2.  
  3.  
  4. TTTTAAAASSSSKKKKCCCCTTTTLLLL((((3333PPPP))))                                                        TTTTAAAASSSSKKKKCCCCTTTTLLLL((((3333PPPP))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      taskctl - operations on a task
  10.  
  11. CCCC SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      ####iiiinnnncccclllluuuuddddeeee <<<<ssssyyyyssss////ttttyyyyppppeeeessss....hhhh>>>>
  13.      ####iiiinnnncccclllluuuuddddeeee <<<<ttttaaaasssskkkk....hhhh>>>>
  14.  
  15.      iiiinnnntttt ttttaaaasssskkkkccccttttllll ((((ttttiiiidddd____tttt ttttiiiidddd,,,, uuuunnnnssssiiiiggggnnnneeeedddd ooooppppttttiiiioooonnnn))));;;;
  16.  
  17. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  18.      _t_a_s_k_c_t_l provides both information about tasks and the ability to control
  19.      certain attributes of a task.  _o_p_t_i_o_n specifies one of the following:
  20.  
  21.      TTTTSSSSKKKK____IIIISSSSBBBBLLLLOOOOCCCCKKKKEEEEDDDD
  22.                returns 1 if the specified task is currently blocked. Since
  23.                other processes could have subsequently unblocked the task, the
  24.                result should be considered a snapshot only.
  25.  
  26.      _t_a_s_k_c_t_l will fail if one or more of the following are true:
  27.  
  28.      [EINVAL]       _o_p_t_i_o_n does not refer to a valid option.
  29.  
  30.      [EINVAL]       _t_i_d does not refer to a valid task.
  31.  
  32. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  33.      prctl(2), taskcreate(3P), taskdestroy(3P).
  34.  
  35. DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
  36.      Upon successful completion, _t_a_s_k_c_t_l returns a _o_p_t_i_o_n specific value.
  37.      Otherwise, a value of -1 is returned to the calling task, and _e_r_r_n_o is
  38.      set to indicate the error.
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.